package com.wn.class30.entity;

import java.io.Serializable;

/**
 * myorder_detail
 * @author 
 */
public class MyorderDetail implements Serializable {
    /**
     * 订单详情ID
     */
    private Integer odid;

    /**
     * 商品编号
     */
    private String productCode;

    /**
     * 购买数量
     */
    private Integer productNum;

    /**
     * 商品单价
     */
    private Double productPrice;

    /**
     * 订单总价
     */
    private Double totalPrice;

    /**
     * 物流状态
     */
    private Integer logistics;

    /**
     * 订单主键
     */
    private Integer myorderId;

    private static final long serialVersionUID = 1L;

    public Integer getOdid() {
        return odid;
    }

    public void setOdid(Integer odid) {
        this.odid = odid;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Double getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Double productPrice) {
        this.productPrice = productPrice;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getLogistics() {
        return logistics;
    }

    public void setLogistics(Integer logistics) {
        this.logistics = logistics;
    }

    public Integer getMyorderId() {
        return myorderId;
    }

    public void setMyorderId(Integer myorderId) {
        this.myorderId = myorderId;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MyorderDetail other = (MyorderDetail) that;
        return (this.getOdid() == null ? other.getOdid() == null : this.getOdid().equals(other.getOdid()))
            && (this.getProductCode() == null ? other.getProductCode() == null : this.getProductCode().equals(other.getProductCode()))
            && (this.getProductNum() == null ? other.getProductNum() == null : this.getProductNum().equals(other.getProductNum()))
            && (this.getProductPrice() == null ? other.getProductPrice() == null : this.getProductPrice().equals(other.getProductPrice()))
            && (this.getTotalPrice() == null ? other.getTotalPrice() == null : this.getTotalPrice().equals(other.getTotalPrice()))
            && (this.getLogistics() == null ? other.getLogistics() == null : this.getLogistics().equals(other.getLogistics()))
            && (this.getMyorderId() == null ? other.getMyorderId() == null : this.getMyorderId().equals(other.getMyorderId()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getOdid() == null) ? 0 : getOdid().hashCode());
        result = prime * result + ((getProductCode() == null) ? 0 : getProductCode().hashCode());
        result = prime * result + ((getProductNum() == null) ? 0 : getProductNum().hashCode());
        result = prime * result + ((getProductPrice() == null) ? 0 : getProductPrice().hashCode());
        result = prime * result + ((getTotalPrice() == null) ? 0 : getTotalPrice().hashCode());
        result = prime * result + ((getLogistics() == null) ? 0 : getLogistics().hashCode());
        result = prime * result + ((getMyorderId() == null) ? 0 : getMyorderId().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", odid=").append(odid);
        sb.append(", productCode=").append(productCode);
        sb.append(", productNum=").append(productNum);
        sb.append(", productPrice=").append(productPrice);
        sb.append(", totalPrice=").append(totalPrice);
        sb.append(", logistics=").append(logistics);
        sb.append(", myorderId=").append(myorderId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}